// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_QC_IQC_RECORD
// * CreateDate    : 2014-06-05 18:30:29
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:29
// * LastChanger   : 2014-06-05 18:30:29
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class QcIqcRecordEntity : EntityBase
    {
        public QcIqcRecordTable TableSchema
        {
            get
            {
                return QcIqcRecordTable.Current;
            }
		}
		
		public QcIqcRecordEntity()
        {

        }
		
		public QcIqcRecordEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.IqcNo = Convert.ToString(CommonFunctions.ToObject(dr["IQC_NO"]));
			this.Sn = Convert.ToString(CommonFunctions.ToObject(dr["SN"]));
			this.ItemName = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_NAME"]));
			this.Std = Convert.ToString(CommonFunctions.ToObject(dr["STD"]));
			this.Tolerance = Convert.ToString(CommonFunctions.ToObject(dr["TOLERANCE"]));
			this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
        }
		
		public QcIqcRecordEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.IqcNo = Convert.ToString(CommonFunctions.ToObject(dr["IQC_NO"]));
			this.Sn = Convert.ToString(CommonFunctions.ToObject(dr["SN"]));
			this.ItemName = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_NAME"]));
			this.Std = Convert.ToString(CommonFunctions.ToObject(dr["STD"]));
			this.Tolerance = Convert.ToString(CommonFunctions.ToObject(dr["TOLERANCE"]));
			this.Result = Convert.ToString(CommonFunctions.ToObject(dr["RESULT"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return QcIqcRecordTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_ID)); }
            set { SetData(QcIqcRecordTable.C_ID, value); }
        }
		
        [DataMember]
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_CREATED_BY)); }
            set { SetData(QcIqcRecordTable.C_CREATED_BY, value); }
        }
		
        [DataMember]
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(QcIqcRecordTable.C_CREATED_DATE)); }
            set { SetData(QcIqcRecordTable.C_CREATED_DATE, value); }
        }
		
        [DataMember]
        public string IqcNo
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_IQC_NO)); }
            set { SetData(QcIqcRecordTable.C_IQC_NO, value); }
        }
		
        [DataMember]
        public string Sn
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_SN)); }
            set { SetData(QcIqcRecordTable.C_SN, value); }
        }
		
        [DataMember]
        public string ItemName
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_ITEM_NAME)); }
            set { SetData(QcIqcRecordTable.C_ITEM_NAME, value); }
        }
		
        [DataMember]
        public string Std
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_STD)); }
            set { SetData(QcIqcRecordTable.C_STD, value); }
        }
		
        [DataMember]
        public string Tolerance
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_TOLERANCE)); }
            set { SetData(QcIqcRecordTable.C_TOLERANCE, value); }
        }
		
        [DataMember]
        public string Result
        {
            get { return Convert.ToString(GetData(QcIqcRecordTable.C_RESULT)); }
            set { SetData(QcIqcRecordTable.C_RESULT, value); }
        }
		
		#endregion
	}
	
	
}	

